#import "AppealListItemModel.h"

@implementation AppealListItemModel

-(instancetype)initWithSource:(NSDictionary *)source{
    self = [super initWithSource:source];
    if (self) {
        self.ids = source[@"appealId"];
        self.state = [source[@"appealState"] integerValue];
        self.accepted = [source[@"beAccepted"] boolValue];
        self.content = source[@"description"];
        self.typeName = source[@"appealType"][@"dictName"];
        self.sender = source[@"sourceUserName"];
        self.content = source[@"description"];
        self.eventName = source[@"name"];
        self.stepId = source[@"stepRecordId"];
        self.height = self.height + 35;
    }
    return self;
}

@end

@implementation Appealtype

-(instancetype)initWithSource:(NSDictionary *)source{
    return [[self class]yy_modelWithJSON:source];
}

@end

